new Vue({
  el: "#app",
  data: {
    ossImgUrl: ossImgUrl,//oss图片域名
    env: '',//判断环境
  },
  mounted() {
    // 判断是否在小程序内
    var u = window.navigator.userAgent;
    var that = this;
    if (/MicroMessenger/i.test(u)) {//判断是否是微信环境
      wx.miniProgram.getEnv(res => {
        if (res.miniprogram) {// 小程序
          that.env = 'mp';
        }
      })
    }
  },
  methods: {
    // 立即领取
    ljReceive: function () {
      // 跳转到小程序礼包列表页面
      wx.miniProgram.navigateTo({
        url: '/pages/gift/index'
      });
    }
  }
})